Determining a number's divisibility
by Savonnah '23
def divisibilty_name(num):
result = num % 3
if result == 0:
return True
else:
return False
| Function Call | Return Value | |||
|---|---|---|---|---|
| divisibilty_name(3) | → | |||
| divisibilty_name(56) | → | |||
| divisibilty_name(6) | → | |||
| divisibilty_name(61) | → | |||
Experiment with this code on Gitpod.io